using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class PickFromQueueRequest : OrganizationRequest
	{
		public Guid QueueItemId
		{
			get
			{
				if (base.Parameters.Contains("QueueItemId"))
				{
					return (Guid)base.Parameters["QueueItemId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["QueueItemId"] = value;
			}
		}
		public Guid WorkerId
		{
			get
			{
				if (base.Parameters.Contains("WorkerId"))
				{
					return (Guid)base.Parameters["WorkerId"];
				}
				return default(Guid);
			}
			set
			{
				base.Parameters["WorkerId"] = value;
			}
		}
		public bool RemoveQueueItem
		{
			get
			{
				return base.Parameters.Contains("RemoveQueueItem") && (bool)base.Parameters["RemoveQueueItem"];
			}
			set
			{
				base.Parameters["RemoveQueueItem"] = value;
			}
		}
		public PickFromQueueRequest()
		{
			base.RequestName = "PickFromQueue";
			this.QueueItemId = default(Guid);
			this.WorkerId = default(Guid);
			this.RemoveQueueItem = false;
		}
	}
}
